package thread;

public class Interrupt {

	public static void main(String[] args) {
//		MyThread mt = new MyThread();
//		Thread thread = new Thread(mt);
//		thread.start();
//		thread.interrupt();
	}
	 public int minSwap(int[] A, int[] B) {
	     for(int i = 1; i < A.length; i++){
	    	 if(A[i] < A[i - 1] || B[i] < B[i - 1]){
	    		 
	    	 }
	     }
	     return 0;
	 }
}


class MyThread extends Thread{

	@Override
	public void run() {
        for(int i = 0; i < 50000; i++){
        	if(this.interrupted()){
        		//关闭线程
        		break;
        	}
        }
        System.out.println("没有真正的关闭，这句任然可以执行");
	}	
}